package com.opengroupe.dao;

import java.util.List;

import com.opengroupe.entities.CandidatReponseQuestion;
import com.opengroupe.entities.Question;
import com.opengroupe.entities.Reponse;

public interface QuestionDao extends Dao<Question>{

	/**
	 * Retrieves all {@link Question} from database
	 * 
	 * @return {@link List}
	 */
	public List<Question> findAll();

	/**
	 * Deletes from database the {@link Question}, all {@link Reponse} 
	 * and all {@link CandidatReponseQuestion} linked to it.
	 * 
	 * @param question
	 */
	public void deleteCascade(Question question);
}
